﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AiXiu.Model;
using AiXiu.BLL;
using AiXiu.IBLL;

namespace AiXiu.WebSite.Handler
{
    /// <summary>
    /// DeleteVideo 的摘要说明
    /// </summary>
    public class DeleteVideo : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            string videoId = context.Request["videoId"];
            IVideoBLL videoBLL = new VideoBLL();

            if (videoBLL.DeleteVideo(videoId).StatusCode == StatusCode.Succeed)
            {
                context.Response.Write("true");
            }
            else
            {
                context.Response.Write("false");
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}